{% extends "base.html" %}


{% block title %}
部门管理
{% endblock %}

{% block label %}
部门管理<a class="btn btn-default pull-right" href="/OA/add_department/">添加</a>
{% endblock %}


{% block contenter %}
<div class="col-lg-12">
                    <div class="row">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>部门名称</th>
                                <th>部门描述</th>
                                <th>部门操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for i in dep_list %}
                            <tr>
                                <td class="col-lg-4">{{ i.d_name }}</td>
                                <td class="col-lg-4">{{ i.d_dec }}</td>
                                <td class="col-lg-4">
                                    <a class="btn btn-default" href="/OA/edit_department/{{ i.id }}/">编辑</a>
                                    <a class="btn btn-default" href="/OA/delete_dep/{{ i.id }}/">删除</a>
                                    <a class="btn btn-default" href="/OA/position/{{ i.id }}/">查看职位</a>
                                </td>
                            </tr>
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>

{% endblock %}